package com.aqian.theme.color.happy.ui.viewmodel

import androidx.lifecycle.ViewModel
import com.aqian.theme.color.happy.data.model.IconPack
import com.aqian.theme.color.happy.data.model.IconPackMockData
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow

class IconPackViewModel : ViewModel() {
    private val _iconPacks = MutableStateFlow<List<IconPack>>(emptyList())
    val iconPacks: StateFlow<List<IconPack>> = _iconPacks.asStateFlow()

    init {
        loadIconPacks()
    }

    private fun loadIconPacks() {
        _iconPacks.value = IconPackMockData.mockIconPacks
    }
}
